package com.tech.connect.api;

import java.util.HashMap;
import java.util.Map;

import io.reactivex.Observable;
import retrofit2.http.Body;
import retrofit2.http.POST;

public class UserHttp {
    public static Map<String, Object> getMap() {
        return new HashMap<>();
    }
    public interface ConnectApiServer {
        @POST("v1/private/user/update")
        Observable<BaseEntity<UserInfo>> updateUserInfo(@Body Map<String, Object> map);

    }

    public static Observable<BaseEntity<UserInfo>> updateUserInfo(Map<String, Object> map, final BaseEntityOb<UserInfo> ob) {
        return ob.bindObed(ConnectApiManager.getApiServer(ConnectApiServer.class).updateUserInfo(map));
    }

}
